package com.company.example.concurrent;

/**
 * Created by ywl on 2017/2/15.
 * 线程休眠工具类
 */
public class SleepUtil {
    private static final int DELAY = 1000;
    public static void sleepSecond(int second){
        sleepMilliSecond(second * DELAY);
    }

    public static void sleepMilliSecond(int milliSecond){
        try {
            Thread.sleep(milliSecond);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
